import { defineStore } from 'pinia'
import { handleDefaultSetting, type AppStore } from './helper'

export const useAppStore = defineStore(`app-store`, {
  state: (): AppStore => handleDefaultSetting(),
  getters: {},
  actions: {},
  persist: {
    enabled: true,
    strategies: [
      {
        storage: localStorage
      }
    ]
  }
})
